#!/bin/bash

# shellcheck disable=SC2009
ps -ef | grep -v grep | grep --color=none markdown

cd /www/markdown || exit

git pull

supervisorctl stop markdown
sleep 1

go build -o markdown.exe main.go

supervisorctl start markdown
sleep 1

# shellcheck disable=SC2009
ps -ef | grep -v grep | grep --color=none markdown
